// pages/prepareLessonsDetails/components/flowClassify/flowClassify.js
Component({
  properties: {
    periodData: {
      type: Object,
      value: ''
    }
  },
  data: {
    tabActive: 0,
    detail: {}
  },
  options: {
    styleIsolation: 'shared'
  },
  observers: {
    periodData: function(data) {
      if (data.resCourseVideo.files === '') {
        data.resCourseVideo.fileList = []
      } else if (data.resCourseVideo.files && data.resCourseVideo.files.indexOf(',') > 0) {
        data.resCourseVideo.fileList = data.resCourseVideo.files.split(',')
      } else {
        data.resCourseVideo.fileList = [data.resCourseVideo.files]
      }
      this.setData({
        detail: data
      })
    }
  },
  attached: function() {

  },
  methods: {

  }
})
